package com.lhkj.ct.meta.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lhkj.ct.base.enums.GlobalStatus;
import com.lhkj.ct.base.validator.group.ValGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <p>
 *      员工分页
 * </p>
 *
 * @author job
 * @since 2023/9/18
 */
@Setter
@Getter
public class EmpPageVo {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "工号")
    private String empNo;

    @ApiModelProperty(value = "姓名")
    private String empName;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "职称名称")
    private String dutiesName;

    @ApiModelProperty(value = "岗位")
    private String postName;

    @ApiModelProperty(value = "任职科室id")
    private String deptId;

    @ApiModelProperty(value = "任职科室")
    private String deptName;

    @ApiModelProperty(value = "任职机构")
    private String organName;

    @NotNull(message = "请选择状态", groups = {ValGroups.Insert.class, ValGroups.Update.class})
    @ApiModelProperty(value = "状态", required = true, example = "0", notes = "0.启用 1.禁用")
    private GlobalStatus empStatus;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
